<!--
 * @Author: your name
 * @Date: 2022-03-25 13:41:09
 * @LastEditTime: 2022-03-29 14:04:49
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\src\views\el\inbodyNode\index.vue
-->
<template>
  <div class="InbodyNode">
    <in-body>
      <div class="view">
        <div class="box">
          <div class="img"></div>
          <div class="content"></div>
        </div>
      </div>
    </in-body>
  </div>
</template>

<script>
export default {
  name: "InbodyNode",
};
</script>

<style lang="less" scoped>
.view {
  position: fixed;
  top: 200px;
  right: 20px;
}
.box {
  margin-top: 20px;
  width: 200px;
  position: relative;
  height: 500px;
  .img {
    height: 100px;
    transition: height 0.5s;
    background: url(https://dss2.bdstatic.com/8_V1bjqh_Q23odCf/pacific/1994409170.jpg?x=0&y=0&h=150&w=242&vh=150.00&vw=242.00&oh=150.00&ow=242.00)
      center;
    background-size: contain;
  }
  .content {
    background-color: aquamarine;
    height: 300px;
    position: absolute;
    top: 100px;
    width: 200px;
    transition: top 0.5s;
  }
  &:hover {
    .img {
      height: 120px;
    }
    .content {
      top: 80px;
    }
  }
}
</style>